package cn.boyu.service;

import cn.boyu.entity.AssetsAmmeter;
import cn.boyu.entity.Customer;
import cn.boyu.entity.SysUser;
import cn.boyu.query.AmmeterQuery;
import cn.boyu.query.SysUserQuery;
import cn.boyu.result.AjaxResult;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yn
 * @since 2022-11-22
 */
public interface ISysUserService extends IService<SysUser> {

    SysUser login(String username, String password);

    String setToken(SysUser userinfo);

    AjaxResult editPassword(Long id, String password, String newPass, String rePass);

    SysUser getUserByToken(String token);

    void register(String name, String nick, String phone, String password, String rePass);

    IPage<SysUser> queryPage(SysUserQuery qo);

    void update(SysUser sysUser);

    void batchDelete(Long[] arr);


    void savesys(SysUser sysUser);
}
